package interface_func

type Shape interface {
	area() float64
	perimeter() float64
}

type Rectangle struct {
	a, b float64
}

func (r Rectangle) perimeter() float64 {
	return (r.a + r.b) * 2
}
func (r Rectangle) area() float64 {
	return r.a * r.b
}
